#include <bits/stdc++.h>
using namespace std;
using uint=unsigned int;
using ll=long long;
using ull=unsigned long long;
using i128=__int128;
const int N=1e6+5;

void solve(){
    double a,b;
    cin>>a>>b;
    if(a<=b){
        printf("perfect! %.2f\n",b-a);
    }
    else cout<<"It's so bad! 0.00"<<endl;
    return;
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    solve();
    

    return 0;
}